← Back to issue list

Snapcraft auth does not create dir needed and errors out

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2098999
Type
issue
State
open
Author
~kenneth-loafman
Labels
snapcraft
Created
2025-02-20 17:57:56.383928+00:00
Updated
2025-02-20 18:18:17.176695+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Here is the log listing. ~/Library/Application\ Support/snapcraft is not being created. Seems to run after manual creation. $ tools/makesnap arm64 /Users/ken/workspace/venv312/lib/python3.12/site-packages/ptr/__init__.py:81: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated. !! ******************************************************************************** Please remove any references to `setuptools.command.test` in all supported versions of the affected package. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. ******************************************************************************** !! class PyTest(orig.test): tools/makesnap of 3.0.5.dev on arm64 version: 3.0.5.dev Using build ID snapcraft-duplicity-36c31ac34fa501dff1b98d2dabdfbc9f The authorization page: (https://launchpad.net/+authorize-token?oauth_token=Hjj1JsJnqKB1f7pr3bCD&allow_permission=DESKTOP_INTEGRATION) should be opening in your browser. Use your browser to authorize this program to access Launchpad on your behalf. Waiting to hear from Launchpad about your decision... Sorry, an error occurred in Snapcraft: [Errno 2] No such file or directory: '/Users/ken/Library/Application Support/snapcraft/launchpad-credentials' Traceback (most recent call last): File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/snapcraft/cli.py", line 242, in run global_args = dispatcher.pre_parse_args(sys.argv[1:]) File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/craft_cli/dispatcher.py", line 517, in pre_parse_args raise ArgumentParsingError(help_text) from None craft_cli.errors.ArgumentParsingError: Usage: snapcraft [options] command [args]... Try 'snapcraft -h' for help. Error: no such command 'remote-build' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/snapcraft_legacy/cli/legacy.py", line 27, in legacy_run run() ~~~^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/click/core.py", line 1161, in __call__ return self.main(*args, **kwargs) ~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/click/core.py", line 1082, in main rv = self.invoke(ctx) File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/click/core.py", line 1697, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/click/core.py", line 1443, in invoke return ctx.invoke(self.callback, **ctx.params) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/click/core.py", line 788, in invoke return __callback(*args, **kwargs) File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/snapcraft_legacy/cli/remote.py", line 149, in remote_build lp = LaunchpadClient( project=project, ...<2 lines>... deadline=deadline, ) File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/snapcraft_legacy/internal/remote_build/_launchpad.py", line 117, in __init__ self._lp: Launchpad = self.login() ~~~~~~~~~~^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/snapcraft_legacy/internal/remote_build/_launchpad.py", line 275, in login return Launchpad.login_with( ~~~~~~~~~~~~~~~~~~~~^ "snapcraft remote-build {}".format(snapcraft_legacy.__version__), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... version="devel", ^^^^^^^^^^^^^^^^ ) ^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/launchpad.py", line 693, in login_with return cls._authorize_token_and_login( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ authorization_engine.consumer, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... version, ^^^^^^^^ ) ^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/launchpad.py", line 444, in _authorize_token_and_login credentials = authorization_engine(credentials, credential_store) File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/credentials.py", line 607, in __call__ credential_store.save(credentials, self.unique_consumer_id) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/credentials.py", line 293, in save raise e File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/credentials.py", line 288, in save self.do_save(credentials, unique_consumer_id) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/launchpadlib/credentials.py", line 453, in do_save credentials.save_to_path(self.filename) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/snapcraft/8.6.3/libexec/lib/python3.13/site-packages/lazr/restfulclient/authorize/oauth.py", line 272, in save_to_path os.open( ~~~~~~~^ path, ^^^^^ (os.O_CREAT | os.O_TRUNC | os.O_WRONLY), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (stat.S_IREAD | stat.S_IWRITE), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ), ^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/ken/Library/Application Support/snapcraft/launchpad-credentials'

Evaluation history

No evaluation history available.